package com.itheima.pinda.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pinda.common.utils.PageResponse;
import com.itheima.pinda.common.utils.Result;
import com.itheima.pinda.entity.AddressBook;

/**
 * 地址簿
 */
public interface AddressBookService extends IService<AddressBook> {

    Result saveAddressBook(AddressBook entity);

    AddressBook detail(String id);

    PageResponse<AddressBook> pageAddressBook(Integer page,
                                              Integer pageSize,
                                              String userId,
                                              String keyword);

    Result updateAddressBook(String id, AddressBook entity);

    Result delAddressBook(String id);
}
